import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<UserLoginState> buildReducer() {
  return asReducer(
    <Object, Reducer<UserLoginState>>{
      UserLoginAction.action: _onAction,
    },
  );
}

UserLoginState _onAction(UserLoginState state, Action action) {
  final UserLoginState newState = state.clone();
  return newState;
}
